﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UMLTouch.Core.Entities;
using UMLTouch.Core.UI;

namespace UMLTouch.DomainRecognition
{
    public class UnrecognizedItem : IDiagramItem
    {


        public List<IDiagramItem> LinkedItems
        {
            get { return null; }
        }

        #region IDiagramItem Members

        public IEnumerable<Segment> Segments
        {
            get;
            protected set;
        }

        public IEnumerable<System.Windows.Ink.Stroke> Strokes
        {
            get;
            protected set;
        }
        public IEnumerable<System.Windows.Point> IntersectionPoints
        {
            get;
            protected set;
        }

        #endregion

        public UnrecognizedItem(Shape shape)
        {
            Segments = shape.Segments;
            Strokes = shape.BaseStrokes;
            IntersectionPoints = shape.Intersections.Select(inter => inter.IntersectionPoint);
            Position = shape.TopLeft;
        }


        #region IDiagramItem Members


        public ItemAnchor ConnectItem(ItemAnchor itemToConnect)
        {
            throw new NotImplementedException();
        }

        #endregion

        #region IDiagramItem Members


       
        #endregion

        #region IDiagramItem Members


        public System.Windows.Point Position
        {
            get;
            set;
        }

        #endregion

        #region IDiagramItem Members


        public double X
        {
            get;
            set;
        }

        public double Y
        {
            get;
            set;
        }

        #endregion
    }
}
